<?php
namespace App\Controller;

use app\BaseController;

class Job extends BaseController
{
    public function __construct(\think\App $app)
    {
        $this->app = $app;
        $this->request = $this->app->request;

        $this->JobModel = new \app\common\model\Job;
    }

     //获取职位列表,仅超级管理员可以
     public function list(){
        if($this->request->isGet()){
            $jobList = $this->JobModel->select();

            return json($jobList);
        }
    }

    //新增职位,仅超级管理员可以
    public function create(){
        if($this->request->isGet()){

        }
    }

    //修改职位信息,仅超级管理员可以
    public function update(){
        if($this->request->isGet()){
            
        }
    }

    //删除职位,仅超级管理员可以
    public function delete(){
        if($this->request->isGet()){
            
        }
    }
}